turn on OsPath build flag by default
authorJoey Hess <joeyh@joeyh.name>
Fri, 5 Sep 2025 16:44:46 +0000 (12:44 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 5 Sep 2025 16:44:46 +0000 (12:44 -0400)
commitfe6775619758e16f3e8cb77b4ee1d0775ae7795c
tree4836e7c9f39118ac055485dd9ce3f4befb07b944
parent6662b49d35b75066a51852f7a551f74b0b1cf1eb
turn on OsPath build flag by default

It was already default in stack builds, now it is default in cabal
builds as well.

Add build warnings when git-annex is built without the OsPath build flag.

git-annex version: Report on whether it was built with the OsPath build flag.

Having the flag on by default was always the plan, and this is a good time to
make the change. A bit of added urgency comes from the close-on-exec leak
issue. Fixing that is going to need reimplentation of things like openFile.
Needing to reimplenment it twice is not very appealing, especially since the
FilePath version of it has an implementation that cannot be easily copied and
tweaked. If OsPath is on by default, I can start with only implementing
openFile for it, and fix the bug in that build. And perhaps avoid doing the
extra work that will later get thrown away when this transition finishes.

Note that at this point, Debian still needs to package file-io. Hopefully, they
will package it, rather than turning off the OsPath build flag.
BuildFlags.hs
CHANGELOG
doc/todo/RawFilePath_conversion.mdwn
git-annex.cabal